import java.util.Scanner;

public class JudgePrimeNumber {
    public static void main(String[] args) {
        int a = 0;
        int i = 0;
        for (a = 1;a <= 100;a++){
            if (a == 2) {
                System.out.print(a + " ");
            }else {
                for (i = 2; i < a; i++) {
                    if (a % i == 0) {
                        break;
                    }
                }
                if(i == a){
                    System.out.print(a + " ");
                }
            }
        }
    }
    public static void main1(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int a = 0;
        int i = 0;
        a = scanner.nextInt();
        if(a <= 1) {
            System.out.println(a + " is not prime number!");
        } else if (a == 2) {
            System.out.println(a + " is prime number!");
        }else {
            for (i = 2; i < a; i++) {
                if (a % i == 0) {
                    break;
                }
            }
            if(i == a){
                System.out.println(a + " is prime number!");
            }else {
                System.out.println(a + " is not prime number!");
            }
        }
    }
}
